package com.thoughtful;

import com.thoughtful.annotation.RpcReference;
import com.thoughtful.model.Hello;
import org.springframework.stereotype.Component;

/**
 * @author yushun
 * @createTime 2022/10/20 - 11:42
 **/
@Component
public class HelloController {

    @RpcReference(version = "1.0.0", group = "test")
    private HelloService helloService;

    public void test() {
        String hello = helloService.hello(new Hello("111", "222"));
        System.out.println(hello);
    }

}
